from django.db import models

# Create your models here.


class CartHome(models.Model):
    """
    汽车之家
    """
    title = models.CharField(max_length=80)
    href = models.CharField(max_length=256)
    desc = models.CharField(max_length=500)
    counter = models.IntegerField(default=0)

    class Meta:
        db_table = 'carthome'

    def __str__(self):
        return self.title